package cn.stylefeng.guns.modular.transport.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.transport.entity.TransportReceipt;
import cn.stylefeng.guns.modular.transport.model.params.TransportReceiptParam;
import cn.stylefeng.guns.modular.transport.model.result.TDispatchResult;
import cn.stylefeng.guns.modular.transport.model.result.TransportReceiptResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 回传单表 服务类
 * </p>
 *
 * @author zhucx
 * @since 2020-01-08
 */
public interface TransportReceiptService extends IService<TransportReceipt> {

    /**
     * 新增
     *
     * @author zhucx
     * @Date 2020-01-08
     */
    void add(TransportReceiptParam param);

    /**
     * 删除
     *
     * @author zhucx
     * @Date 2020-01-08
     */
    void delete(TransportReceiptParam param);

    /**
     * 更新
     *
     * @author zhucx
     * @Date 2020-01-08
     */
    void update(TransportReceiptParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author zhucx
     * @Date 2020-01-08
     */
    TransportReceiptResult findBySpec(TransportReceiptParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author zhucx
     * @Date 2020-01-08
     */
    List<TransportReceiptResult> findListBySpec(TransportReceiptParam param,Long operateId);

    /**
     * 查询分页数据，Specification模式
     *
     * @author zhucx
     * @Date 2020-01-08
     */
     LayuiPageInfo findPageBySpec(TransportReceiptParam param,String condition);

	void deleteBySpec(TransportReceiptParam param);

	TransportReceiptResult sumBySpec(TransportReceiptParam param8);

    List<TransportReceiptResult> findbyCarnum(String privatecarCarnumber);

	List<TransportReceiptResult> findchengyunshangMingxiCount(TransportReceiptParam transportReceiptParam, String condition,
			String driver1, String money);

	void updateBySpec(TransportReceiptParam transportReceiptParam);

	TransportReceiptResult getPrintReceipt(TransportReceiptParam transportReceiptParam);

	LayuiPageInfo findTransportSetPageBySpec(TransportReceiptParam transportReceiptParam, String condition);

	List<TransportReceiptResult> findtransportSetListBySpec(TransportReceiptParam transportReceiptParam);

	List<TransportReceiptResult> findzcsxListBySpec(TransportReceiptParam transportReceiptParamzcsx);

	List<TransportReceiptResult> findfenceListBySpec(TransportReceiptParam transportReceiptParam);

	Integer countcheckzhixing(String dispatchNumber);

	void updatePrint(TransportReceiptParam transportReceiptParam);
}
